package com.propertypoint.service.business;

import com.propertypoint.persitence.dao.impl.AuthenticationDAO;
import com.propertypoint.persitence.dao.impl.AuthenticationDAOImpl;
import com.propertypoint.presentation.model.BaseUser;
import com.propertypoint.service.general.UserLoginService;

public class UserLoginServiceImpl implements UserLoginService {

	private AuthenticationDAO authenticationDAO=new AuthenticationDAOImpl();
	@Override
	public BaseUser authenticateUser(String username, String password)
			throws Exception {
		return authenticationDAO.authenticateUser(username, password);
	}
	@Override
	public BaseUser getUser(String username) throws Exception {
		// TODO Auto-generated method stub
		return authenticationDAO.getUser(username);
	}

}
